package campeonatofutebol.util;

import android.app.Activity;
import android.content.Intent;
import android.os.AsyncTask;
import campeonatofutebol.conn.facebook.CompartilharNoticiaActivity;

public class CompartilharMensagemTask extends AsyncTask<String, Object, Boolean>{

	private Activity activityAtual;
	
	public CompartilharMensagemTask(Activity activity) {
		activityAtual = activity;
	}
	
	@Override
	protected Boolean doInBackground(String... mensagem) {
		// TODO Auto-generated method stub
		Intent i = new Intent(activityAtual.getBaseContext(), CompartilharNoticiaActivity.class);
		CarregadorDeStatus.getInstance().setNovoStatus(mensagem[0]);
		activityAtual.startActivity(i);
		return true;
	}

	@Override
	protected void onPostExecute(Boolean result) {
		// TODO Auto-generated method stub
		super.onPostExecute(result);
	}
	
	
}
